#!/bin/sh

# Since upstream provides non-free documentation files, 
# we remove them from src.rpm.
#
# 1. download the upstream tarball
# 2. sh ./generate-tarball.sh VERSION
# 3. upload v$VERSION-nodocs.tar.gz

VERSION=$1

tar -xzvf v$VERSION.tar.gz
rm -rf waitress-$VERSION/docs
mv waitress-$VERSION waitress-$VERSION-nodocs
tar -czvf v$VERSION-nodocs.tar.gz waitress-$VERSION-nodocs
